import Vue from 'vue'
import Router from 'vue-router'
import login from "../components/login";
import manager from "../components/manager";
import share from "../components/share";
import info from "../components/info";
import main from "../components/Main";
import reportlist from "../components/reportlist";

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'login',
      component: login
    },
    {
      path:"/manager",
      component:manager,
      children:[
        {path:"info",component:info},
        {path:"main",component:main}
      ]
    },
    {
      path: '/share',
      name: 'share',
      component: share
    },
    {
      path: '/reportlist',
      name: 'reportlist',
      component: reportlist
    }

  ]
})
